<template>
  <header>
    <div class="logo">
      <slot name="left"></slot>
    </div>
    <div class="text">
      <slot name="right"></slot>
    </div>
  </header>
</template>

<script>
export default {
  name: "compHeader",
};
</script>

<style lang="less" scoped>
@bgColor: #5ab8ee;
header {
  width: 100%;
  height: 50px;
  background-color: @bgColor;
  padding: 0 15px;
  box-sizing: border-box;
  display: flex;
  .logo {
    width: 50px;
    height: 50px;
    img {
      width: 50px;
      height: 50px;
    }
  }
  .text {
    span {
      margin-left: 10px;
      font-size: 18px;
      line-height: 50px;
      font-weight: bold;
      color: white;
    }
  }
}
</style>